import { createWebHashHistory, createRouter } from 'vue-router'

const history = createWebHashHistory()
const router = createRouter({
  history, // 路由模式
  routes: [
    {
      path: '/home',
      name: 'home',
      component: () => import('../page/home/index.vue')
    }, {
      path: '/video',
      name: 'video',
      component: () => import('../page/video/index.vue')
    }, {
      path: '/subscribe',
      name: 'subscribe',
      component: () => import('../page/subscribe/index.vue')
    }, {
      path: '/personal',
      name: 'personal',
      component: () => import('../page/personal/index.vue'),
      children: [
        {
          path: '/personal/myFoots',
          name: '/personal/myFoots',
          component: () => import('../page/personal/my-footer/index.vue')
        }, {
          path: '',
          component: () => import('../page/personal/personal-center/index.vue')
        }
      ]
    }, 
  ]
})

export default router;
